import { defineStore } from 'pinia'

const usePresetStore = defineStore('preset', {
  state: () => {
    return {
      version:'1.0.1',
      presetConfig: {
        has4d: true,
        skipScout: true, //是否显示快速扫描。
        hasNormalScan: true,
        hasEmergency: true,
        hasTransport: true,
        hasAI: true,
        goZero: true
      }
    }
  },
  actions: {
    set(payload) {
      this.presetConfig = payload
    }
  }
})

export {
  usePresetStore
}

